package com.yuyou.fn.crm.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.crm.entity.CrmDepartment;
import com.yuyou.fn.crm.vo.CrmDepartmentVo;

import java.util.List;

/**
 *
 * CrmDepartment 表数据服务层接口
 *
 */
public interface ICrmDepartmentService extends ISuperService<CrmDepartment,Long> {

    void saveOrUpdateCrmDepartment(Long areaTeamId, List<CrmDepartmentVo> crmDepartmentVoList);

    void deleteByAreaTeamId(Long areaTeamId);

    List<CrmDepartment> findDepartmentListByAreaTeamId(Long areaTeamId);

    CrmDepartment findByAreaTeamIdAndName(long areaTeamId,String departmentName);
}